package com.zixi.ai.framework.entity;

import com.zixi.ai.framework.entity.listener.ExtBaseModelEntityListener;
import jakarta.persistence.Column;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.MappedSuperclass;
import lombok.Getter;
import lombok.Setter;

/**
 * @author mqiqe
 */
@Getter
@Setter
@MappedSuperclass
@EntityListeners(ExtBaseModelEntityListener.class)
public class ExtBaseEntity extends BaseEntity {
    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @Column(name = "del_flag")
    private Integer delFlag = 0;

    /** 租户 */
    @Column(name = "tenant_id", updatable = false)
    private String tenantId;
}
